package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

@Data
@TableName(value = "sys_user")
@ApiModel(value = "User对象",description = "")
@ToString
public class User {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty("用户名")
    private String username;
    @ApiModelProperty("密码")
    private String password;
    @ApiModelProperty("昵称")
    private String nickname;
    @ApiModelProperty("邮箱")
    private String email;
    @ApiModelProperty("手机")
    private String phone;
    @ApiModelProperty("地址")
    private String address;
    @ApiModelProperty("头像")
    private String avatar;
    @ApiModelProperty("角色")
    private String role;

}
